<?php
/**
 * Model class link to table tagmap in database
 *
 * @author Dat Nguyen <datn@evolable.asia>
 */
class Tagmap extends AppModel {
	var $name = 'Tagmap';
	var $useTable = 'tagmap';
	var $primaryKey = 'id';

	function deleteCourseTag($courseId) {
		$this->deleteAll(array(
			$this->alias . '.course_id' => $courseId,
		));
	}
}